/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.entity.player.EntityPlayer;
/*    */ import net.minecraft.entity.player.EntityPlayerMP;
/*    */ import net.minecraft.tileentity.TileEntity;
/*    */ import net.minecraft.util.text.TextFormatting;
/*    */ import net.minecraft.world.WorldServer;
/*    */ import org.apache.logging.log4j.Level;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class xo
/*    */   implements Runnable
/*    */ {
/*    */   public xo(no.eos/moe/dragoncore/oz eos/moe/dragoncore/oz1, EntityPlayerMP paramEntityPlayerMP, no paramno) {}
/*    */   
/*    */   public void run() {
/* 60 */     TileEntity tileEntity = this.w.func_71121_q().func_175625_s(this.q.q);
/* 61 */     if (tileEntity != null && qz.w.v((EntityPlayer)this.w)) {
/*    */       try {
/* 63 */         tileEntity.func_145839_a(this.q.g);
/* 64 */         tileEntity.func_70296_d();
/* 65 */         if (tileEntity.func_145830_o() && tileEntity.func_145831_w() instanceof WorldServer) {
/* 66 */           ((WorldServer)tileEntity.func_145831_w()).func_184164_w().func_180244_a(this.q.q);
/*    */         }
/* 68 */         qz.v(Level.TRACE, this.w.func_70005_c_() + " edited a tag -- Tile Entity at " + this.q.q.func_177958_n() + ", " + this.q.q.func_177956_o() + ", " + this.q.q.func_177952_p());
/* 69 */         qz.v(this.q.g);
/* 70 */         qz.w.v((EntityPlayer)this.w, "Your changes have been saved", TextFormatting.WHITE);
/* 71 */       } catch (Throwable throwable) {
/* 72 */         qz.w.v((EntityPlayer)this.w, "Save Failed - Invalid NBT format for Tile Entity", TextFormatting.RED);
/* 73 */         qz.v(Level.WARN, this.w.func_70005_c_() + " edited a tag and caused an exception");
/* 74 */         qz.v(this.q.g);
/* 75 */         qz.v("TileNBTPacket", "Handler.onMessage", throwable);
/*    */       } 
/*    */     } else {
/* 78 */       qz.v(Level.WARN, this.w.func_70005_c_() + " tried to edit a non-existent TileEntity at " + this.q.q.func_177958_n() + ", " + this.q.q.func_177956_o() + ", " + this.q.q.func_177952_p());
/* 79 */       qz.w.v((EntityPlayer)this.w, "cSave Failed - There is no TileEntity at " + this.q.q.func_177958_n() + ", " + this.q.q.func_177956_o() + ", " + this.q.q.func_177952_p(), TextFormatting.RED);
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\xo.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */